﻿<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ page import="java.util.*,
                 com.kylin.common.*,
                 com.kylin.common.util.*,
				 com.kylin.common.dict.orm.Dict,
				 com.kylin.module.study.orm.Courseware
				 " %>
<%@ include file="/common/include/taglibs.jsp"%>
<%@ include file="/common/include/dictNames.jsp"%>
<%@ include file="/common/include/pageExpires.jsp"%>
 
<%Courseware co = (Courseware)request.getAttribute(Constants.KEY_REQUEST_RESULT);%>
<br>
<mytag:MyActionMsg />
<html:form action="/admin/study/manageCourseware.do?CMD=executeUpdate" method="post" enctype="multipart/form-data">
<input type="hidden" name="id" value="<%=co.getId()%>">
	<table width="90%" cellspacing="0" cellpadding="0">
		<tr>
			<td class='pageTd' width="100">
				母语
			</td>
			<td>
				<%=UTool.getLanguageName(co.getLanguage(),sessionLocale) %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				学习语言
			</td>
			<td>
				<%=UTool.getLanguageName(co.getTargetlang(),sessionLocale) %>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				所属分类
			</td>
			<td>
				<mytag:select name="catcoursewareid" notEmpty="true"
					dictName="<%=dict_cat_study2%>" value="<%=(co.getDict().getId()).toString()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				所属文章分类
			</td>
			<td>
				<mytag:select name="catarticleid" notEmpty="true"
					dictName="<%=dict_cat_study3%>" value="<%=(co.getArticleDict().getId()).toString()%>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				课件标题
			</td>
			<td>
				<html:text property="title" value="<%=co.getTitle() %>"/>
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				上传课件
			</td>
			<td>
				<html:file property="mediapath" value="<%=co.getMediapath()%>"/>
			<%
		        if(co.getMediapath()!=null && !co.getMediapath().equals("") ){
		    %>			
					<a href="/admin/study/playMedia.jsp?fileType=<%=Constants.MEDIA_COURSE%>&fileUrl=<%=co.getMediapath()%>&imgpath<%=co.getId()%>=<%=co.getMediapath() %>">
		        	<img src="/images/lessonpic01.gif" width="13" height="13" stype="cursor:hand"/>
		        </a>
		    <%
		        }
		    %>	
			</td>
		</tr>
		<tr>
			<td class='pageTd' width="100">
				译文
			</td>
			<td>
				<html:textarea property="translatation" value="<%=co.getTranslatation() %>"/>
			</td>
		</tr>

		<tr>
			<td colspan=2 align="center">
				<input type="submit" value="保存">
			</td>
		</tr>
	</table>
</html:form>
